package com.cqjtu.eecs.entity.params.role;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ToString
@EqualsAndHashCode
@AllArgsConstructor
@NoArgsConstructor
public class RoleParams {
    @ApiModelProperty(value = "角色名")
    @NotBlank(message = "角色名不能为空")
    private String roleName;
    @NotNull(message = "角色权限不能为null")
    @ApiModelProperty(value = "角色权限")
    private List<String> rolePermissions;
}
